<template>
  <el-form-item label="账号类型" prop="type">
    <el-select :value="value" placeholder="请选择" @change="inputChange">
      <el-option label="超级管理员" value="SUPER_ADMIN" key="SUPER_ADMIN" />
      <el-option label="管理员" value="ADMIN" key="ADMIN" />
    </el-select>
  </el-form-item>
</template>

<script lang="ts">
  import { Vue, Component, Model } from 'vue-property-decorator'

  @Component({
    name: 'ComAccountTypeSelect',
  })
  export default class CodeInput extends Vue {

    @Model('change', { type: String }) value!: string

    inputChange(text: string) {
      this.$emit('change', text)
    }
  }
</script>

<style scoped>

</style>
